<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <style>
        .box{
            width: 250px;
            height: 250px;
            border: 1px solid #ccc;
            text-align: center;
            line-height: 250px;
            margin: 100px auto;
            background: red;
            opacity: 0.7;
            color: yellow;
            cursor: pointer;
        }
    </style>
</head>
<body>
<div class="box">
    首页
</div>
</body>
</html>
<script src="js/jquery-1.10.1.js"></script>
<script>
    $(function () {
        $(".box").click(function () {
            $(this).animate({
                "width" : "500px",
                "height" : "500px",
                "fontSize" : "50px",
                "opacity" : 0.3,
                "lineHeight" : "500px"
            },3000,function () {
                $(this).animate({
                    "width" : "250px",
                    "height" : "250px",
                    "fontSize" : "16px",
                    "opacity" : 0.7,
                    "lineHeight" : "250px"
                },1000,function () {
                    $(this).animate({
                        "width" : "500px",
                        "height" : "500px",
                        "fontSize" : "50px",
                        "opacity" : 0.3,
                        "lineHeight" : "500px"
                    },1000)
                })
            })
        })
    })
</script>